package com.farm.quartz.Dao;

import com.farm.quartz.model.haohaoMessage;
import com.farm.quartz.model.haohaoType;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface haohaoTypeDao extends JpaRepository<haohaoType,Integer> {
    List<haohaoType> findAllBy(Pageable pageable);

    List<haohaoType> findByName(String name);

    int countAllBy();
}
